<template>
  <div class="pass-header" :class="color === 'white' ? 'white' : ''">
    <div class="left">
      <svg-icon :icon="color === 'white' ? 'logo-white' : 'logo'" class-name="icon-logo"></svg-icon>
      <svg-icon icon="logo-text" class-name="logo-text"></svg-icon>
    </div>
    <span class="pass-text">通行证</span>
  </div>
</template>

<script lang="ts" setup>
  const props = defineProps({
    color: {
      type: String,
      default: ''
    }
  })
</script>

<style lang="scss">
  .icon-logo {
    width: 40px !important;
    height: 40px !important;
  }
  .pass-header {
    z-index: 10;
    height: 40px;
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;

    .left {
      display: flex;

      .logo-text {
        width: 120px;
        height: 40px;
        margin-left: 24px;
      }
    }
    .pass-text {
      color: $text-color;
      line-height: 40px;
      font-size: 32px;
      font-weight: 400;
      border-left: 1px solid rgba(14, 22, 42, 0.4);
      padding-left: 24px;
      margin-left: 30px;
    }
  }
  .white {
    .logo-text {
      color: #fff;
    }
    .pass-text {
      border-left: 1px solid #fff;
      color: #fff;
    }
  }
</style>
